<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>flex布局案例-基础 | Vscing blog</title>
    <meta name="generator" content="VuePress 1.8.0">
    <link rel="icon" href="/img/favicon.ico">
    <script data-ad-client="ca-pub-7828333725993554" async="async" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <meta name="description" content="全栈技术博客,简洁至上,专注学习与总结。JavaScript,js,ES6,TypeScript,vue,react,php,java,python,css3,html5,Node,git,github等技术文章。">
    <meta name="keywords" content="前端博客,个人技术博客,前端,前端开发,前端框架,web前端,前端面试题,技术文档,学习,面试,JavaScript,js,ES6,TypeScript,vue,python,css3,html5,Node,git,github,markdown">
    <meta name="baidu-site-verification" content="7F55weZDDc">
    <meta name="theme-color" content="#11a8cd">
    <link rel="preload" href="/assets/css/0.styles.46195d5d.css" as="style"><link rel="preload" href="/assets/js/app.c1850502.js" as="script"><link rel="preload" href="/assets/js/2.d72a94c1.js" as="script"><link rel="preload" href="/assets/js/36.c8031063.js" as="script"><link rel="prefetch" href="/assets/js/10.3a4a01f4.js"><link rel="prefetch" href="/assets/js/100.cafccb02.js"><link rel="prefetch" href="/assets/js/101.9b90a2cb.js"><link rel="prefetch" href="/assets/js/102.57fa6dba.js"><link rel="prefetch" href="/assets/js/103.5fb70a87.js"><link rel="prefetch" href="/assets/js/104.19ff8124.js"><link rel="prefetch" href="/assets/js/105.bc3af5a9.js"><link rel="prefetch" href="/assets/js/106.e0b0d025.js"><link rel="prefetch" href="/assets/js/107.36be26d8.js"><link rel="prefetch" href="/assets/js/108.3fd2dad6.js"><link rel="prefetch" href="/assets/js/109.370822fd.js"><link rel="prefetch" href="/assets/js/11.ef14dc03.js"><link rel="prefetch" href="/assets/js/110.24ef06ab.js"><link rel="prefetch" href="/assets/js/111.316bf6d9.js"><link rel="prefetch" href="/assets/js/112.688666c2.js"><link rel="prefetch" href="/assets/js/113.72645a7e.js"><link rel="prefetch" href="/assets/js/114.b84a416b.js"><link rel="prefetch" href="/assets/js/115.b1f2686d.js"><link rel="prefetch" href="/assets/js/116.ffe1956f.js"><link rel="prefetch" href="/assets/js/117.3ac55c28.js"><link rel="prefetch" href="/assets/js/118.0e9580bd.js"><link rel="prefetch" href="/assets/js/119.3a66e144.js"><link rel="prefetch" href="/assets/js/12.50962377.js"><link rel="prefetch" href="/assets/js/120.15241f2a.js"><link rel="prefetch" href="/assets/js/121.1a557cf9.js"><link rel="prefetch" href="/assets/js/122.f49fe0c6.js"><link rel="prefetch" href="/assets/js/123.63b0dab8.js"><link rel="prefetch" href="/assets/js/124.64e10cf6.js"><link rel="prefetch" href="/assets/js/125.ac1a45a2.js"><link rel="prefetch" href="/assets/js/126.4101e5bc.js"><link rel="prefetch" href="/assets/js/127.84af1857.js"><link rel="prefetch" href="/assets/js/128.78881e2c.js"><link rel="prefetch" href="/assets/js/129.bd944054.js"><link rel="prefetch" href="/assets/js/13.81d41325.js"><link rel="prefetch" href="/assets/js/130.b7ae5476.js"><link rel="prefetch" href="/assets/js/131.42fdd237.js"><link rel="prefetch" href="/assets/js/132.0acb8329.js"><link rel="prefetch" href="/assets/js/133.30f095ac.js"><link rel="prefetch" href="/assets/js/134.af37ce64.js"><link rel="prefetch" href="/assets/js/135.8fda9d65.js"><link rel="prefetch" href="/assets/js/136.5043bc0c.js"><link rel="prefetch" href="/assets/js/137.67f7560b.js"><link rel="prefetch" href="/assets/js/138.1cee76c9.js"><link rel="prefetch" href="/assets/js/139.c0a8e214.js"><link rel="prefetch" href="/assets/js/14.c8be704a.js"><link rel="prefetch" href="/assets/js/140.cae55178.js"><link rel="prefetch" href="/assets/js/141.d1bb8b1d.js"><link rel="prefetch" href="/assets/js/142.98109a54.js"><link rel="prefetch" href="/assets/js/143.4ed1f39b.js"><link rel="prefetch" href="/assets/js/144.4082f638.js"><link rel="prefetch" href="/assets/js/145.9c95501d.js"><link rel="prefetch" href="/assets/js/146.b18f56cb.js"><link rel="prefetch" href="/assets/js/147.003567b4.js"><link rel="prefetch" href="/assets/js/148.17166202.js"><link rel="prefetch" href="/assets/js/149.a254b64b.js"><link rel="prefetch" href="/assets/js/15.e931f5ae.js"><link rel="prefetch" href="/assets/js/150.b14364a6.js"><link rel="prefetch" href="/assets/js/151.0c74502f.js"><link rel="prefetch" href="/assets/js/152.a464e076.js"><link rel="prefetch" href="/assets/js/153.82d664a9.js"><link rel="prefetch" href="/assets/js/154.29330d51.js"><link rel="prefetch" href="/assets/js/155.ac97d1dc.js"><link rel="prefetch" href="/assets/js/156.9a09aae3.js"><link rel="prefetch" href="/assets/js/157.bc343d60.js"><link rel="prefetch" href="/assets/js/158.a0e2fabc.js"><link rel="prefetch" href="/assets/js/159.86c09a04.js"><link rel="prefetch" href="/assets/js/16.70de468e.js"><link rel="prefetch" href="/assets/js/160.bede104b.js"><link rel="prefetch" href="/assets/js/161.59152d71.js"><link rel="prefetch" href="/assets/js/162.4da753d9.js"><link rel="prefetch" href="/assets/js/163.85130c2e.js"><link rel="prefetch" href="/assets/js/164.73af69a5.js"><link rel="prefetch" href="/assets/js/165.5eb91d7c.js"><link rel="prefetch" href="/assets/js/166.d673b37e.js"><link rel="prefetch" href="/assets/js/167.566e26dc.js"><link rel="prefetch" href="/assets/js/168.e23aa1de.js"><link rel="prefetch" href="/assets/js/169.7e94ecf2.js"><link rel="prefetch" href="/assets/js/17.0634fe99.js"><link rel="prefetch" href="/assets/js/170.71d9b108.js"><link rel="prefetch" href="/assets/js/171.62dbc9c0.js"><link rel="prefetch" href="/assets/js/172.58992686.js"><link rel="prefetch" href="/assets/js/173.b80c65de.js"><link rel="prefetch" href="/assets/js/174.42d3711c.js"><link rel="prefetch" href="/assets/js/175.cbf7a8cf.js"><link rel="prefetch" href="/assets/js/176.6a466f29.js"><link rel="prefetch" href="/assets/js/177.48b2b1ac.js"><link rel="prefetch" href="/assets/js/178.67041227.js"><link rel="prefetch" href="/assets/js/179.2b1142da.js"><link rel="prefetch" href="/assets/js/18.6c75b434.js"><link rel="prefetch" href="/assets/js/180.15dc4275.js"><link rel="prefetch" href="/assets/js/181.6256c092.js"><link rel="prefetch" href="/assets/js/182.e29547c6.js"><link rel="prefetch" href="/assets/js/183.239c5d71.js"><link rel="prefetch" href="/assets/js/184.40224921.js"><link rel="prefetch" href="/assets/js/185.1d685ce2.js"><link rel="prefetch" href="/assets/js/186.fd402562.js"><link rel="prefetch" href="/assets/js/187.44316d8a.js"><link rel="prefetch" href="/assets/js/188.d9bcc786.js"><link rel="prefetch" href="/assets/js/189.6b75bc96.js"><link rel="prefetch" href="/assets/js/19.5f0275cc.js"><link rel="prefetch" href="/assets/js/190.170a5ab0.js"><link rel="prefetch" href="/assets/js/191.0e3c027e.js"><link rel="prefetch" href="/assets/js/192.43a1b721.js"><link rel="prefetch" href="/assets/js/193.0bbdc1f7.js"><link rel="prefetch" href="/assets/js/194.8c778e77.js"><link rel="prefetch" href="/assets/js/195.83a52c06.js"><link rel="prefetch" href="/assets/js/196.9bcf184d.js"><link rel="prefetch" href="/assets/js/197.895d4707.js"><link rel="prefetch" href="/assets/js/198.ff4b00e7.js"><link rel="prefetch" href="/assets/js/199.914ae724.js"><link rel="prefetch" href="/assets/js/20.edf47839.js"><link rel="prefetch" href="/assets/js/200.572a57be.js"><link rel="prefetch" href="/assets/js/201.1e92dfb4.js"><link rel="prefetch" href="/assets/js/202.4fb01755.js"><link rel="prefetch" href="/assets/js/203.77669f1e.js"><link rel="prefetch" href="/assets/js/204.9b708571.js"><link rel="prefetch" href="/assets/js/205.c88c135c.js"><link rel="prefetch" href="/assets/js/206.4a961f68.js"><link rel="prefetch" href="/assets/js/207.e819be78.js"><link rel="prefetch" href="/assets/js/208.3ed91f43.js"><link rel="prefetch" href="/assets/js/209.8d76f011.js"><link rel="prefetch" href="/assets/js/21.9728b3ab.js"><link rel="prefetch" href="/assets/js/210.be71a787.js"><link rel="prefetch" href="/assets/js/211.f19040aa.js"><link rel="prefetch" href="/assets/js/212.af0df23a.js"><link rel="prefetch" href="/assets/js/213.33354f52.js"><link rel="prefetch" href="/assets/js/214.e75e1acf.js"><link rel="prefetch" href="/assets/js/215.a19a02a3.js"><link rel="prefetch" href="/assets/js/216.71653524.js"><link rel="prefetch" href="/assets/js/217.5ce26938.js"><link rel="prefetch" href="/assets/js/218.448720a5.js"><link rel="prefetch" href="/assets/js/219.f83abe7d.js"><link rel="prefetch" href="/assets/js/22.d99e679f.js"><link rel="prefetch" href="/assets/js/220.f0a4e329.js"><link rel="prefetch" href="/assets/js/221.a63fac2b.js"><link rel="prefetch" href="/assets/js/222.da777628.js"><link rel="prefetch" href="/assets/js/223.67822249.js"><link rel="prefetch" href="/assets/js/224.fd036dca.js"><link rel="prefetch" href="/assets/js/225.4502b710.js"><link rel="prefetch" href="/assets/js/226.dbbe07cb.js"><link rel="prefetch" href="/assets/js/227.309c2613.js"><link rel="prefetch" href="/assets/js/228.52142c95.js"><link rel="prefetch" href="/assets/js/229.253b3c9e.js"><link rel="prefetch" href="/assets/js/23.3bdec03e.js"><link rel="prefetch" href="/assets/js/230.af200f20.js"><link rel="prefetch" href="/assets/js/231.546562b7.js"><link rel="prefetch" href="/assets/js/232.c5513027.js"><link rel="prefetch" href="/assets/js/233.af135e2e.js"><link rel="prefetch" href="/assets/js/234.4c73eb04.js"><link rel="prefetch" href="/assets/js/235.a9a106ea.js"><link rel="prefetch" href="/assets/js/24.31ba05b4.js"><link rel="prefetch" href="/assets/js/25.e632168f.js"><link rel="prefetch" href="/assets/js/26.8b4f4d1c.js"><link rel="prefetch" href="/assets/js/27.73a8af61.js"><link rel="prefetch" href="/assets/js/28.a399c713.js"><link rel="prefetch" href="/assets/js/29.6345822d.js"><link rel="prefetch" href="/assets/js/3.b1545b94.js"><link rel="prefetch" href="/assets/js/30.4121caf2.js"><link rel="prefetch" href="/assets/js/31.cbd0a371.js"><link rel="prefetch" href="/assets/js/32.bb21539c.js"><link rel="prefetch" href="/assets/js/33.d9ef9d4a.js"><link rel="prefetch" href="/assets/js/34.bb6b9736.js"><link rel="prefetch" href="/assets/js/35.94452a11.js"><link rel="prefetch" href="/assets/js/37.c145085c.js"><link rel="prefetch" href="/assets/js/38.8331bc43.js"><link rel="prefetch" href="/assets/js/39.3d0f5775.js"><link rel="prefetch" href="/assets/js/4.97fba247.js"><link rel="prefetch" href="/assets/js/40.8645ffe4.js"><link rel="prefetch" href="/assets/js/41.ea893b5e.js"><link rel="prefetch" href="/assets/js/42.23b7fec4.js"><link rel="prefetch" href="/assets/js/43.1a1c127a.js"><link rel="prefetch" href="/assets/js/44.499e5e0c.js"><link rel="prefetch" href="/assets/js/45.a936fe60.js"><link rel="prefetch" href="/assets/js/46.dcc73915.js"><link rel="prefetch" href="/assets/js/47.8531f2e1.js"><link rel="prefetch" href="/assets/js/48.e252c07e.js"><link rel="prefetch" href="/assets/js/49.bee4b1fa.js"><link rel="prefetch" href="/assets/js/5.72ef969c.js"><link rel="prefetch" href="/assets/js/50.080d32c8.js"><link rel="prefetch" href="/assets/js/51.3fc7a83d.js"><link rel="prefetch" href="/assets/js/52.e1be9c1b.js"><link rel="prefetch" href="/assets/js/53.24e510ed.js"><link rel="prefetch" href="/assets/js/54.1437feec.js"><link rel="prefetch" href="/assets/js/55.4fbadf0b.js"><link rel="prefetch" href="/assets/js/56.27846469.js"><link rel="prefetch" href="/assets/js/57.d74c23a6.js"><link rel="prefetch" href="/assets/js/58.bcaabd2e.js"><link rel="prefetch" href="/assets/js/59.1a3cae63.js"><link rel="prefetch" href="/assets/js/6.32dc9888.js"><link rel="prefetch" href="/assets/js/60.12a88847.js"><link rel="prefetch" href="/assets/js/61.6a26c1ce.js"><link rel="prefetch" href="/assets/js/62.b72f7a5b.js"><link rel="prefetch" href="/assets/js/63.45c42fc9.js"><link rel="prefetch" href="/assets/js/64.c63229d3.js"><link rel="prefetch" href="/assets/js/65.b1a4efd0.js"><link rel="prefetch" href="/assets/js/66.67082c89.js"><link rel="prefetch" href="/assets/js/67.0be82011.js"><link rel="prefetch" href="/assets/js/68.ff51f357.js"><link rel="prefetch" href="/assets/js/69.a3622123.js"><link rel="prefetch" href="/assets/js/7.88750ad0.js"><link rel="prefetch" href="/assets/js/70.42b19a3b.js"><link rel="prefetch" href="/assets/js/71.abe211d6.js"><link rel="prefetch" href="/assets/js/72.323a0851.js"><link rel="prefetch" href="/assets/js/73.a8439952.js"><link rel="prefetch" href="/assets/js/74.3145a964.js"><link rel="prefetch" href="/assets/js/75.cf03bb3b.js"><link rel="prefetch" href="/assets/js/76.ac3371d2.js"><link rel="prefetch" href="/assets/js/77.3988c925.js"><link rel="prefetch" href="/assets/js/78.28866077.js"><link rel="prefetch" href="/assets/js/79.76ae67e2.js"><link rel="prefetch" href="/assets/js/8.861cc52f.js"><link rel="prefetch" href="/assets/js/80.674dc308.js"><link rel="prefetch" href="/assets/js/81.720c1a75.js"><link rel="prefetch" href="/assets/js/82.91ebd435.js"><link rel="prefetch" href="/assets/js/83.0c07c3ab.js"><link rel="prefetch" href="/assets/js/84.cfb08495.js"><link rel="prefetch" href="/assets/js/85.b3b98380.js"><link rel="prefetch" href="/assets/js/86.1a790c36.js"><link rel="prefetch" href="/assets/js/87.d547ea6d.js"><link rel="prefetch" href="/assets/js/88.30bb2ac8.js"><link rel="prefetch" href="/assets/js/89.60c26eff.js"><link rel="prefetch" href="/assets/js/9.8fef5bff.js"><link rel="prefetch" href="/assets/js/90.f91d0816.js"><link rel="prefetch" href="/assets/js/91.169fca7b.js"><link rel="prefetch" href="/assets/js/92.32efee35.js"><link rel="prefetch" href="/assets/js/93.e06bec76.js"><link rel="prefetch" href="/assets/js/94.b5358aba.js"><link rel="prefetch" href="/assets/js/95.ee20cebc.js"><link rel="prefetch" href="/assets/js/96.b8889bb2.js"><link rel="prefetch" href="/assets/js/97.aefb0279.js"><link rel="prefetch" href="/assets/js/98.72e88659.js"><link rel="prefetch" href="/assets/js/99.fc7fbc75.js">
    <link rel="stylesheet" href="/assets/css/0.styles.46195d5d.css">
  </head>
  <body class="theme-mode-light">
    <div id="app" data-server-rendered="true"><div class="theme-container sidebar-open"><header class="navbar blur"><div title="目录" class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/img/EB-logo.png" alt="Vscing blog" class="logo"> <span class="site-name can-hide">Vscing blog</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">首页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="前端" class="dropdown-title"><a href="/web/" class="link-title">前端</a> <span class="title" style="display:none;">前端</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><h4>前端文章</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/pages/8143cc480faf9a11/" class="nav-link">JavaScript</a></li></ul></li><li class="dropdown-item"><h4>学习笔记</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/note/javascript/" class="nav-link">《JavaScript教程》</a></li><li class="dropdown-subitem"><a href="/note/js/" class="nav-link">《JavaScript高级程序设计》</a></li><li class="dropdown-subitem"><a href="/note/es6/" class="nav-link">《ES6 教程》</a></li><li class="dropdown-subitem"><a href="/note/vue/" class="nav-link">《Vue》</a></li><li class="dropdown-subitem"><a href="/note/react/" class="nav-link">《React》</a></li><li class="dropdown-subitem"><a href="/note/typescript-axios/" class="nav-link">《TypeScript 从零实现 axios》</a></li><li class="dropdown-subitem"><a href="/note/git/" class="nav-link">《Git》</a></li><li class="dropdown-subitem"><a href="/pages/51afd6/" class="nav-link">TypeScript</a></li><li class="dropdown-subitem"><a href="/pages/4643cd/" class="nav-link">JS设计模式总结</a></li></ul></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="页面" class="dropdown-title"><a href="/ui/" class="link-title">页面</a> <span class="title" style="display:none;">页面</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/8309a5b876fc95e3/" class="nav-link">HTML</a></li><li class="dropdown-item"><!----> <a href="/pages/0a83b083bdf257cb/" class="nav-link">CSS</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="技术" class="dropdown-title"><a href="/technology/" class="link-title">技术</a> <span class="title" style="display:none;">技术</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/9a7ee40fc232253e/" class="nav-link">技术文档</a></li><li class="dropdown-item"><!----> <a href="/pages/4c778760be26d8b3/" class="nav-link">GitHub技巧</a></li><li class="dropdown-item"><!----> <a href="/pages/117708e0af7f0bd9/" class="nav-link">Nodejs</a></li><li class="dropdown-item"><!----> <a href="/pages/41f87d890d0a02af/" class="nav-link">博客搭建</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="更多" class="dropdown-title"><a href="/more/" class="link-title">更多</a> <span class="title" style="display:none;">更多</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/f2a556/" class="nav-link">学习</a></li><li class="dropdown-item"><!----> <a href="/pages/aea6571b7a8bae86/" class="nav-link">面试</a></li><li class="dropdown-item"><!----> <a href="/pages/2d615df9a36a98ed/" class="nav-link">心情杂货</a></li><li class="dropdown-item"><!----> <a href="/pages/baaa02/" class="nav-link">实用技巧</a></li><li class="dropdown-item"><!----> <a href="/friends/" class="nav-link">友情链接</a></li></ul></div></div><div class="nav-item"><a href="/about/" class="nav-link">关于</a></div><div class="nav-item"><a href="/pages/beb6c0bd8a66cea6/" class="nav-link">收藏</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="索引" class="dropdown-title"><a href="/archives/" class="link-title">索引</a> <span class="title" style="display:none;">索引</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/" class="nav-link">分类</a></li><li class="dropdown-item"><!----> <a href="/tags/" class="nav-link">标签</a></li><li class="dropdown-item"><!----> <a href="/archives/" class="nav-link">归档</a></li></ul></div></div> <a href="https://github.com/xugaoyi/vuepress-theme-vdoing" target="_blank" rel="noopener noreferrer" class="repo-link">
    GitHub
    <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar" style="display:none;"><div class="blogger"><img src="https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg"> <div class="blogger-info"><h3>Evan Xu</h3> <span>前端界的小学生</span></div></div> <nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">首页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="前端" class="dropdown-title"><a href="/web/" class="link-title">前端</a> <span class="title" style="display:none;">前端</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><h4>前端文章</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/pages/8143cc480faf9a11/" class="nav-link">JavaScript</a></li></ul></li><li class="dropdown-item"><h4>学习笔记</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/note/javascript/" class="nav-link">《JavaScript教程》</a></li><li class="dropdown-subitem"><a href="/note/js/" class="nav-link">《JavaScript高级程序设计》</a></li><li class="dropdown-subitem"><a href="/note/es6/" class="nav-link">《ES6 教程》</a></li><li class="dropdown-subitem"><a href="/note/vue/" class="nav-link">《Vue》</a></li><li class="dropdown-subitem"><a href="/note/react/" class="nav-link">《React》</a></li><li class="dropdown-subitem"><a href="/note/typescript-axios/" class="nav-link">《TypeScript 从零实现 axios》</a></li><li class="dropdown-subitem"><a href="/note/git/" class="nav-link">《Git》</a></li><li class="dropdown-subitem"><a href="/pages/51afd6/" class="nav-link">TypeScript</a></li><li class="dropdown-subitem"><a href="/pages/4643cd/" class="nav-link">JS设计模式总结</a></li></ul></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="页面" class="dropdown-title"><a href="/ui/" class="link-title">页面</a> <span class="title" style="display:none;">页面</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/8309a5b876fc95e3/" class="nav-link">HTML</a></li><li class="dropdown-item"><!----> <a href="/pages/0a83b083bdf257cb/" class="nav-link">CSS</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="技术" class="dropdown-title"><a href="/technology/" class="link-title">技术</a> <span class="title" style="display:none;">技术</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/9a7ee40fc232253e/" class="nav-link">技术文档</a></li><li class="dropdown-item"><!----> <a href="/pages/4c778760be26d8b3/" class="nav-link">GitHub技巧</a></li><li class="dropdown-item"><!----> <a href="/pages/117708e0af7f0bd9/" class="nav-link">Nodejs</a></li><li class="dropdown-item"><!----> <a href="/pages/41f87d890d0a02af/" class="nav-link">博客搭建</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="更多" class="dropdown-title"><a href="/more/" class="link-title">更多</a> <span class="title" style="display:none;">更多</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/f2a556/" class="nav-link">学习</a></li><li class="dropdown-item"><!----> <a href="/pages/aea6571b7a8bae86/" class="nav-link">面试</a></li><li class="dropdown-item"><!----> <a href="/pages/2d615df9a36a98ed/" class="nav-link">心情杂货</a></li><li class="dropdown-item"><!----> <a href="/pages/baaa02/" class="nav-link">实用技巧</a></li><li class="dropdown-item"><!----> <a href="/friends/" class="nav-link">友情链接</a></li></ul></div></div><div class="nav-item"><a href="/about/" class="nav-link">关于</a></div><div class="nav-item"><a href="/pages/beb6c0bd8a66cea6/" class="nav-link">收藏</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="索引" class="dropdown-title"><a href="/archives/" class="link-title">索引</a> <span class="title" style="display:none;">索引</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/" class="nav-link">分类</a></li><li class="dropdown-item"><!----> <a href="/tags/" class="nav-link">标签</a></li><li class="dropdown-item"><!----> <a href="/archives/" class="nav-link">归档</a></li></ul></div></div> <a href="https://github.com/xugaoyi/vuepress-theme-vdoing" target="_blank" rel="noopener noreferrer" class="repo-link">
    GitHub
    <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav>  <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>HTML</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>CSS</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/pages/c8f128/" class="sidebar-link">CSS教程和技巧收藏</a></li><li><a href="/pages/0a83b083bdf257cb/" class="sidebar-link">flex布局语法</a></li><li><a href="/pages/ea6db1530c42ad51/" aria-current="page" class="active sidebar-link">flex布局案例-基础</a></li><li><a href="/pages/eff61bc8b4f4695d/" class="sidebar-link">flex布局案例-骰子</a></li><li><a href="/pages/df9e7c7214fa5046/" class="sidebar-link">flex布局案例-圣杯布局</a></li><li><a href="/pages/85b5a3fe218a34b7/" class="sidebar-link">flex布局案例-网格布局</a></li><li><a href="/pages/05cc577fb51c7998/" class="sidebar-link">flex布局案例-输入框布局</a></li><li><a href="/pages/02d7f59d98d87409/" class="sidebar-link">CSS3之transition过渡</a></li><li><a href="/pages/c2c0432138f6e042/" class="sidebar-link">CSS3之animation动画</a></li><li><a href="/pages/3d52574260725aea/" class="sidebar-link">「布局技巧」图片未加载前自动撑开元素高度</a></li><li><a href="/pages/42b66999cc27dc25/" class="sidebar-link">文字在一行或多行时超出显示省略号</a></li><li><a href="/pages/20a978023139589d/" class="sidebar-link">从box-sizing属性入手，了解盒子模型</a></li><li><a href="/pages/cb7cb251adba4bf7/" class="sidebar-link">水平垂直居中的几种方式-案例</a></li><li><a href="/pages/5dde351274f1e39d/" class="sidebar-link">如何根据系统主题自动响应CSS深色模式</a></li><li><a href="/pages/941581927b4a38f8/" class="sidebar-link">「css技巧」使用hover和attr()定制悬浮提示</a></li><li><a href="/pages/3da0d7/" class="sidebar-link">CSS-function汇总</a></li></ul></section></li></ul> <div class="sidebar-slot sidebar-slot-bottom"><!-- 正方形 -->
      <ins class="adsbygoogle"
          style="display:block"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="3508773082"
          data-ad-format="auto"
          data-full-width-responsive="true"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script></div></aside> <div><main class="page"><div class="theme-vdoing-wrapper "><div class="articleInfo-wrap" data-v-1cd794fe><div class="articleInfo" data-v-1cd794fe><ul class="breadcrumbs" data-v-1cd794fe><li data-v-1cd794fe><a href="/" title="首页" class="iconfont icon-home router-link-active" data-v-1cd794fe></a></li> <li data-v-1cd794fe><a href="/ui" title="页面-目录页" data-v-1cd794fe>页面</a></li> <li data-v-1cd794fe><a href="/ui/#CSS" title="页面#CSS" data-v-1cd794fe>CSS</a></li> <!----></ul> <div class="info" data-v-1cd794fe><div title="作者" class="author iconfont icon-touxiang" data-v-1cd794fe><a href="https://github.com/xugaoyi" target="_blank" title="作者" class="beLink" data-v-1cd794fe>xugaoyi</a></div> <div title="创建时间" class="date iconfont icon-riqi" data-v-1cd794fe><a href="javascript:;" data-v-1cd794fe>2019-12-25</a></div> <!----></div></div></div> <!----> <div class="content-wrapper"><!----> <h1><img src="">
          flex布局案例-基础
        </h1> <div class="page-slot page-slot-top"><!-- 固定100% * 90px可显示，max-height:90px未见显示-->
     <ins class="adsbygoogle"
          style="display:inline-block;width:100%;max-height:90px"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="6625304284"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script></div> <div class="theme-vdoing-content content__default"><h1 id="flex布局案例-基础"><a href="#flex布局案例-基础" class="header-anchor">#</a> flex布局案例-基础</h1> <blockquote><p>可用<kbd>F12</kbd>开发者工具查看元素及样式，可打开codepen在线编辑代码。</p></blockquote> <div data-config="" data-type="vanilla" data-code="%3Chtml%3E%0A%20%20%3Cdiv%20class%3D%22box%22%3E%0A%20%20%20%20%3Cspan%3E1%3C%2Fspan%3E%0A%20%20%20%20%3Cspan%3E2%3C%2Fspan%3E%0A%20%20%20%20%3Cspan%3E3%3C%2Fspan%3E%0A%20%20%20%20%3Cspan%3E4%3C%2Fspan%3E%0A%20%20%20%20%3Cspan%3E5%3C%2Fspan%3E%0A%20%20%20%20%3Cspan%3E6%3C%2Fspan%3E%0A%20%20%20%20%3Cspan%3E7%3C%2Fspan%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fhtml%3E%0A%3Cstyle%3E%0A%2F*%20%E7%88%B6%E5%85%83%E7%B4%A0%E4%B8%8A%E5%AE%9A%E4%B9%89%E5%BC%B9%E6%80%A7%E7%9B%92%E6%A8%A1%E5%9E%8B%EF%BC%8C%E7%A7%B0%E4%B9%8B%E4%B8%BA%20%E2%80%9C%E5%AE%B9%E5%99%A8%E2%80%9D%20*%2F%0A.box%7B%0A%20%20width%3A%20350px%3B%0A%20%20height%3A%20300px%3B%0A%20%20background%3A%20%23eee%3B%0A%20%20%2F*%20%E5%9F%BA%E6%9C%AC%E6%A6%82%E5%BF%B5%EF%BC%9A.box%E4%B8%BA%E5%AE%B9%E5%99%A8%EF%BC%8C.box%E4%B8%8B%E7%9A%84span%E4%B8%BA%E9%A1%B9%E7%9B%AE%EF%BC%9B.box%E7%9A%84x%E8%BD%B4%E4%B8%BA%E4%B8%BB%E8%BD%B4%EF%BC%8Cy%E8%BD%B4%E4%B8%BA%E4%BA%A4%E5%8F%89%E8%BD%B4%20*%2F%0A%20%20%2F*%20flex%20%E5%AE%9A%E4%B9%89%E4%B8%BA%E5%BC%B9%E6%80%A7%E7%9B%92%E6%A8%A1%E5%9E%8B%20*%2F%0A%20%20display%3A%20flex%3B%0A%20%20%2F*flex-direction%20%E6%8E%92%E5%88%97%E6%96%B9%E5%90%91%EF%BC%9A%20row%20%E8%A1%8C%EF%BC%88%E9%BB%98%E8%AE%A4%EF%BC%89%20%7C%20row-reverse%20%E8%A1%8C-%E5%8F%8D%E8%BD%AC%20%20%7C%20column%20%E5%88%97%20%7C%20column-reverse%20%E5%88%97-%E5%8F%8D%E8%BD%AC%20*%2F%0A%20%20flex-direction%3A%20row%3B%20%0A%20%20%2F*flex-wrap%20%E6%98%AF%E5%90%A6%E6%8D%A2%E8%A1%8C%EF%BC%9A%20nowrap%20%E4%B8%8D%E6%8D%A2%E8%A1%8C%EF%BC%88%E9%BB%98%E8%AE%A4%EF%BC%8C%E5%8F%AF%E8%83%BD%E4%BC%9A%E5%8E%8B%E7%BC%A9%E9%A1%B9%E7%9B%AE%E5%AE%BD%E5%BA%A6%EF%BC%89%20%7C%20wrap%20%E6%8D%A2%E8%A1%8C%20%7C%20wrap-reverse%20%E6%8D%A2%E8%A1%8C-%E5%8F%8D%E8%BD%AC%EF%BC%8C%E7%AC%AC%E4%B8%80%E8%A1%8C%E5%9C%A8%E4%B8%8B%E6%96%B9%20*%2F%0A%20%20flex-wrap%3A%20wrap%3B%0A%20%20%2F*%20flex-flow%20%20%E6%96%B9%E5%90%91%E5%92%8C%E6%8D%A2%E8%A1%8C%E7%9A%84%E7%AE%80%E5%86%99%EF%BC%9A%E9%BB%98%E8%AE%A4%E5%80%BC%E4%B8%BArow%20nowrap%EF%BC%8C%E6%96%B9%E5%90%91%20%E5%92%8C%20%E6%98%AF%E5%90%A6%E6%8D%A2%E8%A1%8C%20%E7%9A%84%E5%8F%96%E5%80%BC%20*%2F%0A%20%20flex-flow%3A%20row%20wrap%3B%0A%20%20%2F*%20justify-content%20%E9%A1%B9%E7%9B%AE%E5%9C%A8%E4%B8%BB%E8%BD%B4%E4%B8%8A%E7%9A%84%E5%AF%B9%E9%BD%90%E6%96%B9%E5%BC%8F%3A%20flex-start%20%E5%B7%A6%E5%AF%B9%E9%BD%90%EF%BC%88%E9%BB%98%E8%AE%A4%EF%BC%89%20%7C%20flex-end%20%E5%8F%B3%E5%AF%B9%E9%BD%90%20%7C%20center%20%E5%B1%85%E4%B8%AD%20%7C%20space-between%20%E4%B8%A4%E7%AB%AF%E5%AF%B9%E9%BD%90%20%7C%20space-around%20%E9%A1%B9%E7%9B%AE%E4%B8%A4%E4%BE%A7%E7%9A%84%E9%97%B4%E9%9A%94%E7%9B%B8%E7%AD%89*%2F%0A%20%20justify-content%3A%20space-around%3B%0A%20%20%2F*%20align-items%20%E9%A1%B9%E7%9B%AE%E5%9C%A8%E4%BA%A4%E5%8F%89%E8%BD%B4%E4%B8%8A%E7%9A%84%E5%AF%B9%E9%BD%90%E6%96%B9%E5%BC%8F%EF%BC%9Astretch%EF%BC%88%E9%BB%98%E8%AE%A4%EF%BC%89%E4%BC%B8%E5%B1%95%EF%BC%8C%E5%A6%82%E6%9E%9C%E9%A1%B9%E7%9B%AE%E6%9C%AA%E8%AE%BE%E7%BD%AE%E9%AB%98%E5%BA%A6%E6%88%96%E8%AE%BE%E4%B8%BAauto%EF%BC%8C%E5%B0%86%E5%8D%A0%E6%BB%A1%E6%95%B4%E4%B8%AA%E5%AE%B9%E5%99%A8%E7%9A%84%E9%AB%98%E5%BA%A6%20%7C%20%0A%20%20flex-start%20%E4%BA%A4%E5%8F%89%E8%BD%B4%E7%9A%84%E8%B5%B7%E7%82%B9%E5%AF%B9%E9%BD%90%20%7C%20flex-end%20%E4%BA%A4%E5%8F%89%E8%BD%B4%E7%9A%84%E7%BB%88%E7%82%B9%E5%AF%B9%E9%BD%90%20%7C%20center%20%E4%BA%A4%E5%8F%89%E8%BD%B4%E7%9A%84%E4%B8%AD%E5%BF%83%E7%82%B9%E5%AF%B9%E9%BD%90%20%7C%20baseline%20%E9%A1%B9%E7%9B%AE%E7%9A%84%E7%AC%AC%E4%B8%80%E8%A1%8C%E6%96%87%E5%AD%97%E7%9A%84%E5%9F%BA%E7%BA%BF%E5%AF%B9%E9%BD%90%EF%BC%88%E9%80%82%E7%94%A8%E4%BA%8E%E6%AF%8F%E4%B8%AA%E9%A1%B9%E7%9B%AE%E9%AB%98%E5%BA%A6%E4%B8%8D%E4%B8%80%E8%87%B4%EF%BC%8C%E4%BB%A5%E9%A1%B9%E7%9B%AE%E4%B8%AD%E7%9A%84%E6%96%87%E5%AD%97%E4%B8%BA%E5%9F%BA%E5%87%86%E5%AF%B9%E9%BD%90%EF%BC%89%20*%2F%0A%20%20align-items%3A%20center%0A%20%20%2F*%20align-content%20%E5%A4%9A%E6%A0%B9%E8%BD%B4%E7%BA%BF%E7%9A%84%E5%AF%B9%E9%BD%90%E6%96%B9%E5%BC%8F%EF%BC%88%E4%B8%80%E6%8E%92%E9%A1%B9%E7%9B%AE%E4%B8%BA%E4%B8%80%E6%A0%B9%E8%BD%B4%E7%BA%BF%EF%BC%8C%E5%8F%AA%E6%9C%89%E4%B8%80%E6%A0%B9%E8%BD%B4%E7%BA%BF%E6%97%B6%E6%AD%A4%E6%A0%B7%E5%BC%8F%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8%EF%BC%89%3A%20%0A%20%20stretch%EF%BC%88%E9%BB%98%E8%AE%A4%EF%BC%89%E4%BC%B8%E5%B1%95%EF%BC%8C%E8%BD%B4%E7%BA%BF%E5%8D%A0%E6%BB%A1%E6%95%B4%E4%B8%AA%E4%BA%A4%E5%8F%89%E8%BD%B4%20%7C%20flex-start%20%E5%AE%B9%E5%99%A8%E9%A1%B6%E9%83%A8%E5%AF%B9%E9%BD%90%20%7C%20flex-end%20%E5%AE%B9%E5%99%A8%E5%BA%95%E9%83%A8%E5%AF%B9%E9%BD%90%20%7C%20center%20%E4%B8%8E%E4%BA%A4%E5%8F%89%E8%BD%B4%E7%9A%84%E4%B8%AD%E7%82%B9%E5%AF%B9%E9%BD%90%20%7C%0A%20%20space-between%20%E4%B8%8E%E4%BA%A4%E5%8F%89%E8%BD%B4%E4%B8%A4%E7%AB%AF%E5%AF%B9%E9%BD%90%EF%BC%8C%E8%BD%B4%E7%BA%BF%E4%B9%8B%E9%97%B4%E7%9A%84%E9%97%B4%E9%9A%94%E5%B9%B3%E5%9D%87%E5%88%86%E5%B8%83%7C%20space-around%20%E6%AF%8F%E6%A0%B9%E8%BD%B4%E7%BA%BF%E4%B8%A4%E4%BE%A7%E7%9A%84%E9%97%B4%E9%9A%94%E9%83%BD%E7%9B%B8%E7%AD%89*%2F%0A%20%20align-content%EF%BC%9Aflex-start%0A%20%20%2F*%20%E4%BB%A3%E7%A0%81%E5%8D%95%E8%AF%8D%E4%B8%AD%E6%96%87%E5%90%AB%E4%B9%89%20%EF%BC%9A%0A%20%20flex%20%E5%BC%B9%E6%80%A7%EF%BC%9B%20direction%20%E6%96%B9%E5%90%91%EF%BC%9B%20wrap%20%E5%A4%96%E5%A5%97%E3%80%81%E5%8C%85%EF%BC%9B%20flow%20%E6%B5%81%E5%8A%A8%0A%20%20justify%20%E5%AF%B9%E9%BD%90%EF%BC%9B%20content%20%E5%86%85%E5%AE%B9%EF%BC%9Bspace%20%E7%A9%BA%E9%97%B4%E3%80%81%E8%B7%9D%E7%A6%BB%EF%BC%9Bbetween%20%E5%9C%A8...%E4%B9%8B%E9%97%B4%EF%BC%9Baround%20%E5%91%A8%E5%9B%B4%E7%9A%84%0A%20%20align%20%E6%8E%92%E5%88%97%EF%BC%9Bstretch%20%E4%BC%B8%E5%B1%95%EF%BC%9B%0A%20%20*%2F%0A%7D%0A%2F*%20%E5%AD%90%E5%85%83%E7%B4%A0%E7%A7%B0%E4%B9%8B%E4%B8%BA%20%E2%80%9C%E9%A1%B9%E7%9B%AE%E2%80%9D%20*%2F%0A.box%20span%7B%0A%20%20display%3Ablock%3Bwidth%3A%2050px%3Bheight%3A%2050px%3Bbackground%3A%20mediumspringgreen%3Bmargin%3A%2010px%3Btext-align%3A%20center%3Bline-height%3A%2050px%3B%0A%20%20%2F*%20flex-grow%20%E9%A1%B9%E7%9B%AE%E7%9A%84%E6%94%BE%E5%A4%A7%E6%AF%94%E4%BE%8B%EF%BC%8C%E9%BB%98%E8%AE%A4%E4%B8%BA0%EF%BC%8C%E5%8D%B3%E5%A6%82%E6%9E%9C%E5%AD%98%E5%9C%A8%E5%89%A9%E4%BD%99%E7%A9%BA%E9%97%B4%EF%BC%8C%E4%B9%9F%E4%B8%8D%E6%94%BE%E5%A4%A7%3B%0A%20%20%E5%A6%82%E6%9E%9C%E6%89%80%E6%9C%89%E4%B8%BA1%E6%97%B6%EF%BC%8C%E5%88%99%E5%AE%83%E4%BB%AC%E5%B0%86%E7%AD%89%E5%88%86%E5%89%A9%E4%BD%99%E7%A9%BA%E9%97%B4%EF%BC%88%E5%A6%82%E6%9E%9C%E6%9C%89%E7%9A%84%E8%AF%9D%EF%BC%89%E3%80%82%0A%20%20%E5%A6%82%E6%9E%9C%E5%85%B6%E4%B8%AD%E4%B8%80%E4%B8%AA%E9%A1%B9%E7%9B%AE%E4%B8%BA2%EF%BC%8C%E5%85%B6%E4%BB%96%E9%A1%B9%E7%9B%AE%E9%83%BD%E4%B8%BA1%EF%BC%8C%E5%88%99%E4%B8%BA2%E7%9A%84%E5%8D%A0%E6%8D%AE%E7%9A%84%E5%89%A9%E4%BD%99%E7%A9%BA%E9%97%B4%E5%B0%86%E6%AF%94%E5%85%B6%E4%BB%96%E9%A1%B9%E5%A4%9A%E4%B8%80%E5%80%8D%E3%80%82%0A%20%20*%2F%0A%20%20flex-grow%3A%200%3B%20%2F*%20grow%20%E6%89%A9%E5%A4%A7%20*%2F%0A%20%20%2F*%20flex-shrink%E5%B1%9E%E6%80%A7%E5%AE%9A%E4%B9%89%E4%BA%86%E9%A1%B9%E7%9B%AE%E7%9A%84%E7%BC%A9%E5%B0%8F%E6%AF%94%E4%BE%8B%EF%BC%8C%E9%BB%98%E8%AE%A4%E4%B8%BA1%EF%BC%8C%E5%8D%B3%E5%A6%82%E6%9E%9C%E7%A9%BA%E9%97%B4%E4%B8%8D%E8%B6%B3%EF%BC%8C%E8%AF%A5%E9%A1%B9%E7%9B%AE%E5%B0%86%E7%BC%A9%E5%B0%8F%E3%80%82%20%0A%20%20%E5%A6%82%E6%9E%9C%E6%89%80%E6%9C%89%E9%A1%B9%E7%9B%AE%E9%83%BD%E4%B8%BA1%EF%BC%8C%E5%BD%93%E7%A9%BA%E9%97%B4%E4%B8%8D%E8%B6%B3%E6%97%B6%EF%BC%8C%E9%83%BD%E5%B0%86%E7%AD%89%E6%AF%94%E4%BE%8B%E7%BC%A9%E5%B0%8F%E3%80%82%0A%20%20%E5%A6%82%E6%9E%9C%E5%85%B6%E4%B8%AD%E4%B8%80%E4%B8%AA%E9%A1%B9%E7%9B%AE%E4%B8%BA0%EF%BC%8C%E5%85%B6%E4%BB%96%E9%A1%B9%E7%9B%AE%E9%83%BD%E4%B8%BA1%EF%BC%8C%E5%88%99%E7%A9%BA%E9%97%B4%E4%B8%8D%E8%B6%B3%E6%97%B6%EF%BC%8C%E4%B8%BA0%E7%9A%84%E4%B8%8D%E7%BC%A9%E5%B0%8F*%2F%0A%20%20flex-shrink%3A%201%3B%20%2F*%20shrink%20%E7%BC%A9%E5%B0%8F%20*%2F%0A%20%20%2F*%20flex-basis%E5%B1%9E%E6%80%A7%E5%AE%9A%E4%B9%89%E4%BA%86%E5%9C%A8%E5%88%86%E9%85%8D%E5%A4%9A%E4%BD%99%E7%A9%BA%E9%97%B4%E4%B9%8B%E5%89%8D%EF%BC%8C%E9%A1%B9%E7%9B%AE%E5%8D%A0%E6%8D%AE%E7%9A%84%E4%B8%BB%E8%BD%B4%E7%A9%BA%E9%97%B4%EF%BC%88%E5%AE%BD%E5%BA%A6%EF%BC%89%E3%80%82%0A%20%20%E6%B5%8F%E8%A7%88%E5%99%A8%E6%A0%B9%E6%8D%AE%E8%BF%99%E4%B8%AA%E5%B1%9E%E6%80%A7%EF%BC%8C%E8%AE%A1%E7%AE%97%E4%B8%BB%E8%BD%B4%E6%98%AF%E5%90%A6%E6%9C%89%E5%A4%9A%E4%BD%99%E7%A9%BA%E9%97%B4%E3%80%82%E5%AE%83%E7%9A%84%E9%BB%98%E8%AE%A4%E5%80%BC%E4%B8%BA%60auto%60%EF%BC%8C%E5%8D%B3%E9%A1%B9%E7%9B%AE%E7%9A%84%E6%9C%AC%E6%9D%A5%E5%A4%A7%E5%B0%8F%E3%80%82%0A%20%20%E5%AE%83%E5%8F%AF%E4%BB%A5%E8%AE%BE%E4%B8%BA%E8%B7%9F%60width%60%E6%88%96%60height%60%E5%B1%9E%E6%80%A7%E4%B8%80%E6%A0%B7%E7%9A%84%E5%80%BC%EF%BC%88%E6%AF%94%E5%A6%8250px%EF%BC%89%EF%BC%8C%E5%88%99%E9%A1%B9%E7%9B%AE%E5%B0%86%E5%8D%A0%E6%8D%AE%E5%9B%BA%E5%AE%9A%E7%A9%BA%E9%97%B4*%2F%0A%20%20flex-basis%3A%20auto%3B%20%2F*%20basis%20%E5%9F%BA%E7%A1%80%20*%2F%0A%20%20%2F*%20flex%E5%B1%9E%E6%80%A7%E6%98%AFflex-grow%2Cflex-shrink%20%E5%92%8C%20flex-basis%E7%9A%84%E7%AE%80%E5%86%99%EF%BC%8C%E9%BB%98%E8%AE%A4%E5%80%BC%E4%B8%BA%600%201%20auto%60%E3%80%82%E5%90%8E%E4%B8%A4%E4%B8%AA%E5%B1%9E%E6%80%A7%E5%8F%AF%E9%80%89%E3%80%82%0A%20%20%E8%AF%A5%E5%B1%9E%E6%80%A7%E6%9C%89%E4%B8%A4%E4%B8%AA%E5%BF%AB%E6%8D%B7%E5%80%BC%EF%BC%9Aauto%20(1%201%20auto)%EF%BC%8C%E5%8D%B3%E6%94%BE%E5%A4%A7%20%E5%92%8C%20none%20(0%200%20auto)%EF%BC%8C%E5%8D%B3%E7%BC%A9%E5%B0%8F%E3%80%82%0A%20%20%E5%BB%BA%E8%AE%AE%E4%BC%98%E5%85%88%E4%BD%BF%E7%94%A8%E8%BF%99%E4%B8%AA%E5%B1%9E%E6%80%A7%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AF%E5%8D%95%E7%8B%AC%E5%86%99%E4%B8%89%E4%B8%AA%E5%88%86%E7%A6%BB%E7%9A%84%E5%B1%9E%E6%80%A7%EF%BC%8C%E5%9B%A0%E4%B8%BA%E6%B5%8F%E8%A7%88%E5%99%A8%E4%BC%9A%E6%8E%A8%E7%AE%97%E7%9B%B8%E5%85%B3%E5%80%BC%E3%80%82*%2F%0A%20%20flex%3A0%201%20auto%3B%20%2F*%20flex%3A%200%E6%94%BE%E5%A4%A7%201%E7%BC%A9%E5%B0%8F%20auto%E5%8E%9F%E6%9C%AC%E5%AE%BD%E5%BA%A6*%2F%0A%7D%0A.box%20span%3Anth-child(2)%7B%0A%20%20%2F*%20order%20%E9%A1%B9%E7%9B%AE%E7%9A%84%E6%8E%92%E5%88%97%E9%A1%BA%E5%BA%8F%E3%80%82%E6%95%B0%E5%80%BC%E8%B6%8A%E5%B0%8F%EF%BC%8C%E6%8E%92%E5%88%97%E8%B6%8A%E9%9D%A0%E5%89%8D%EF%BC%8C%E9%BB%98%E8%AE%A4%E4%B8%BA0%20%3B%20%E5%8F%96%E5%80%BC%EF%BC%9A%E6%AD%A3%E8%B4%9F%E6%95%B4%E6%95%B0%E3%80%82*%2F%0A%20%20order%3A%20-1%3B%0A%20%20background%3A%20red%3B%0A%7D%0A.box%20span%3Anth-child(7)%7B%0A%20%20%2F*%20align-self%20%E5%B1%9E%E6%80%A7%E5%85%81%E8%AE%B8%E5%8D%95%E4%B8%AA%E9%A1%B9%E7%9B%AE%E6%9C%89%E4%B8%8E%E5%85%B6%E4%BB%96%E9%A1%B9%E7%9B%AE%E4%B8%8D%E4%B8%80%E6%A0%B7%E7%9A%84%E5%AF%B9%E9%BD%90%E6%96%B9%E5%BC%8F%EF%BC%8C%E5%8F%AF%E8%A6%86%E7%9B%96align-items%E5%B1%9E%E6%80%A7%E3%80%82%0A%20%20%E9%BB%98%E8%AE%A4%E5%80%BC%E4%B8%BAauto%EF%BC%8C%E8%A1%A8%E7%A4%BA%E7%BB%A7%E6%89%BF%E7%88%B6%E5%85%83%E7%B4%A0%E7%9A%84align-items%E5%B1%9E%E6%80%A7%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%B2%A1%E6%9C%89%E7%88%B6%E5%85%83%E7%B4%A0%EF%BC%8C%E5%88%99%E7%AD%89%E5%90%8C%E4%BA%8Estretch%E3%80%82%0A%20%20%E5%8F%96%E5%80%BC%EF%BC%9Aauto%EF%BC%88%E9%BB%98%E8%AE%A4%EF%BC%89%20%7C%20flex-start%20%7C%20flex-end%20%7C%20center%20%7C%20baseline%20%7C%20stretch%E3%80%82%0A%20%20*%2F%0A%20%20align-self%3A%20flex-end%3B%0A%20%20background%3A%20blue%3B%0A%7D%0A%3C%2Fstyle%3E%0A" class="vuepress-plugin-demo-block__wrapper" style="display:none;"><div class="vuepress-plugin-demo-block__display"><div class="vuepress-plugin-demo-block__app"></div></div> <div class="vuepress-plugin-demo-block__code"><div class="language-html line-numbers-mode"><pre class="language-html"><code><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>html</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">&quot;</span>box<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span><span class="token punctuation">&gt;</span></span>1<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span><span class="token punctuation">&gt;</span></span>2<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span><span class="token punctuation">&gt;</span></span>3<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span><span class="token punctuation">&gt;</span></span>4<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span><span class="token punctuation">&gt;</span></span>5<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span><span class="token punctuation">&gt;</span></span>6<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span><span class="token punctuation">&gt;</span></span>7<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>html</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>style</span><span class="token punctuation">&gt;</span></span><span class="token style"><span class="token language-css">
<span class="token comment">/* 父元素上定义弹性盒模型，称之为 “容器” */</span>
<span class="token selector">.box</span><span class="token punctuation">{</span>
  <span class="token property">width</span><span class="token punctuation">:</span> 350px<span class="token punctuation">;</span>
  <span class="token property">height</span><span class="token punctuation">:</span> 300px<span class="token punctuation">;</span>
  <span class="token property">background</span><span class="token punctuation">:</span> #eee<span class="token punctuation">;</span>
  <span class="token comment">/* 基本概念：.box为容器，.box下的span为项目；.box的x轴为主轴，y轴为交叉轴 */</span>
  <span class="token comment">/* flex 定义为弹性盒模型 */</span>
  <span class="token property">display</span><span class="token punctuation">:</span> flex<span class="token punctuation">;</span>
  <span class="token comment">/*flex-direction 排列方向： row 行（默认） | row-reverse 行-反转  | column 列 | column-reverse 列-反转 */</span>
  <span class="token property">flex-direction</span><span class="token punctuation">:</span> row<span class="token punctuation">;</span> 
  <span class="token comment">/*flex-wrap 是否换行： nowrap 不换行（默认，可能会压缩项目宽度） | wrap 换行 | wrap-reverse 换行-反转，第一行在下方 */</span>
  <span class="token property">flex-wrap</span><span class="token punctuation">:</span> wrap<span class="token punctuation">;</span>
  <span class="token comment">/* flex-flow  方向和换行的简写：默认值为row nowrap，方向 和 是否换行 的取值 */</span>
  <span class="token property">flex-flow</span><span class="token punctuation">:</span> row wrap<span class="token punctuation">;</span>
  <span class="token comment">/* justify-content 项目在主轴上的对齐方式: flex-start 左对齐（默认） | flex-end 右对齐 | center 居中 | space-between 两端对齐 | space-around 项目两侧的间隔相等*/</span>
  <span class="token property">justify-content</span><span class="token punctuation">:</span> space-around<span class="token punctuation">;</span>
  <span class="token comment">/* align-items 项目在交叉轴上的对齐方式：stretch（默认）伸展，如果项目未设置高度或设为auto，将占满整个容器的高度 | 
  flex-start 交叉轴的起点对齐 | flex-end 交叉轴的终点对齐 | center 交叉轴的中心点对齐 | baseline 项目的第一行文字的基线对齐（适用于每个项目高度不一致，以项目中的文字为基准对齐） */</span>
  <span class="token property">align-items</span><span class="token punctuation">:</span> center
  <span class="token comment">/* align-content 多根轴线的对齐方式（一排项目为一根轴线，只有一根轴线时此样式不起作用）: 
  stretch（默认）伸展，轴线占满整个交叉轴 | flex-start 容器顶部对齐 | flex-end 容器底部对齐 | center 与交叉轴的中点对齐 |
  space-between 与交叉轴两端对齐，轴线之间的间隔平均分布| space-around 每根轴线两侧的间隔都相等*/</span>
  align-content：flex-start
  <span class="token comment">/* 代码单词中文含义 ：
  flex 弹性； direction 方向； wrap 外套、包； flow 流动
  justify 对齐； content 内容；space 空间、距离；between 在...之间；around 周围的
  align 排列；stretch 伸展；
  */</span>
<span class="token punctuation">}</span>
<span class="token comment">/* 子元素称之为 “项目” */</span>
<span class="token selector">.box span</span><span class="token punctuation">{</span>
  <span class="token property">display</span><span class="token punctuation">:</span>block<span class="token punctuation">;</span><span class="token property">width</span><span class="token punctuation">:</span> 50px<span class="token punctuation">;</span><span class="token property">height</span><span class="token punctuation">:</span> 50px<span class="token punctuation">;</span><span class="token property">background</span><span class="token punctuation">:</span> mediumspringgreen<span class="token punctuation">;</span><span class="token property">margin</span><span class="token punctuation">:</span> 10px<span class="token punctuation">;</span><span class="token property">text-align</span><span class="token punctuation">:</span> center<span class="token punctuation">;</span><span class="token property">line-height</span><span class="token punctuation">:</span> 50px<span class="token punctuation">;</span>
  <span class="token comment">/* flex-grow 项目的放大比例，默认为0，即如果存在剩余空间，也不放大;
  如果所有为1时，则它们将等分剩余空间（如果有的话）。
  如果其中一个项目为2，其他项目都为1，则为2的占据的剩余空间将比其他项多一倍。
  */</span>
  <span class="token property">flex-grow</span><span class="token punctuation">:</span> 0<span class="token punctuation">;</span> <span class="token comment">/* grow 扩大 */</span>
  <span class="token comment">/* flex-shrink属性定义了项目的缩小比例，默认为1，即如果空间不足，该项目将缩小。 
  如果所有项目都为1，当空间不足时，都将等比例缩小。
  如果其中一个项目为0，其他项目都为1，则空间不足时，为0的不缩小*/</span>
  <span class="token property">flex-shrink</span><span class="token punctuation">:</span> 1<span class="token punctuation">;</span> <span class="token comment">/* shrink 缩小 */</span>
  <span class="token comment">/* flex-basis属性定义了在分配多余空间之前，项目占据的主轴空间（宽度）。
  浏览器根据这个属性，计算主轴是否有多余空间。它的默认值为`auto`，即项目的本来大小。
  它可以设为跟`width`或`height`属性一样的值（比如50px），则项目将占据固定空间*/</span>
  <span class="token property">flex-basis</span><span class="token punctuation">:</span> auto<span class="token punctuation">;</span> <span class="token comment">/* basis 基础 */</span>
  <span class="token comment">/* flex属性是flex-grow,flex-shrink 和 flex-basis的简写，默认值为`0 1 auto`。后两个属性可选。
  该属性有两个快捷值：auto (1 1 auto)，即放大 和 none (0 0 auto)，即缩小。
  建议优先使用这个属性，而不是单独写三个分离的属性，因为浏览器会推算相关值。*/</span>
  <span class="token property">flex</span><span class="token punctuation">:</span>0 1 auto<span class="token punctuation">;</span> <span class="token comment">/* flex: 0放大 1缩小 auto原本宽度*/</span>
<span class="token punctuation">}</span>
<span class="token selector">.box span:nth-child(2)</span><span class="token punctuation">{</span>
  <span class="token comment">/* order 项目的排列顺序。数值越小，排列越靠前，默认为0 ; 取值：正负整数。*/</span>
  <span class="token property">order</span><span class="token punctuation">:</span> -1<span class="token punctuation">;</span>
  <span class="token property">background</span><span class="token punctuation">:</span> red<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token selector">.box span:nth-child(7)</span><span class="token punctuation">{</span>
  <span class="token comment">/* align-self 属性允许单个项目有与其他项目不一样的对齐方式，可覆盖align-items属性。
  默认值为auto，表示继承父元素的align-items属性，如果没有父元素，则等同于stretch。
  取值：auto（默认） | flex-start | flex-end | center | baseline | stretch。
  */</span>
  <span class="token property">align-self</span><span class="token punctuation">:</span> flex-end<span class="token punctuation">;</span>
  <span class="token property">background</span><span class="token punctuation">:</span> blue<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>style</span><span class="token punctuation">&gt;</span></span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br><span class="line-number">36</span><br><span class="line-number">37</span><br><span class="line-number">38</span><br><span class="line-number">39</span><br><span class="line-number">40</span><br><span class="line-number">41</span><br><span class="line-number">42</span><br><span class="line-number">43</span><br><span class="line-number">44</span><br><span class="line-number">45</span><br><span class="line-number">46</span><br><span class="line-number">47</span><br><span class="line-number">48</span><br><span class="line-number">49</span><br><span class="line-number">50</span><br><span class="line-number">51</span><br><span class="line-number">52</span><br><span class="line-number">53</span><br><span class="line-number">54</span><br><span class="line-number">55</span><br><span class="line-number">56</span><br><span class="line-number">57</span><br><span class="line-number">58</span><br><span class="line-number">59</span><br><span class="line-number">60</span><br><span class="line-number">61</span><br><span class="line-number">62</span><br><span class="line-number">63</span><br><span class="line-number">64</span><br><span class="line-number">65</span><br><span class="line-number">66</span><br><span class="line-number">67</span><br><span class="line-number">68</span><br><span class="line-number">69</span><br><span class="line-number">70</span><br><span class="line-number">71</span><br><span class="line-number">72</span><br><span class="line-number">73</span><br><span class="line-number">74</span><br><span class="line-number">75</span><br><span class="line-number">76</span><br></div></div></div> <div class="vuepress-plugin-demo-block__footer"></div></div> <blockquote><p>参考：<a href="http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html" target="_blank" rel="noopener noreferrer">http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p></blockquote></div></div> <div class="page-slot page-slot-bottom"><!-- 横向自适应 -->
      <ins class="adsbygoogle"
          style="display:block"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="6620245489"
          data-ad-format="auto"
          data-full-width-responsive="true"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script></div> <div class="page-edit"><div class="edit-link"><a href="https://github.com/xugaoyi/vuepress-theme-vdoing/edit/master/docs/02.页面/20.CSS/02.flex布局案例-基础.md" target="_blank" rel="noopener noreferrer">编辑</a> <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></div> <!----> <!----></div> <div class="page-nav-wapper"><div class="page-nav-centre-wrap"><a href="/pages/0a83b083bdf257cb/" class="page-nav-centre page-nav-centre-prev"><div class="tooltip">flex布局语法</div></a> <a href="/pages/eff61bc8b4f4695d/" class="page-nav-centre page-nav-centre-next"><div class="tooltip">flex布局案例-骰子</div></a></div> <div class="page-nav"><p class="inner"><span class="prev">
        ←
        <a href="/pages/0a83b083bdf257cb/" class="prev">flex布局语法</a></span> <span class="next"><a href="/pages/eff61bc8b4f4695d/">flex布局案例-骰子</a>→
      </span></p></div></div></div> <div class="article-list"><div class="article-title"><a href="/archives/" class="iconfont icon-bi">最近更新</a></div> <div class="article-wrapper"><dl><dd>01</dd> <dt><a href="/pages/dcebaf/"><div>一行代码“黑”掉任意网站</div></a> <span>11-25</span></dt></dl><dl><dd>02</dd> <dt><a href="/pages/a61298/"><div>33个非常实用的JavaScript一行代码</div></a> <span>11-02</span></dt></dl><dl><dd>03</dd> <dt><a href="/pages/82baa3/"><div>使用State Hook</div></a> <span>04-06</span></dt></dl> <dl><dd></dd> <dt><a href="/archives/" class="more">更多文章&gt;</a></dt></dl></div></div></main></div> <div class="footer"><div class="icons"><a href="mailto:894072666@qq.com" title="发邮件" target="_blank" class="iconfont icon-youjian"></a><a href="https://github.com/xugaoyi" title="GitHub" target="_blank" class="iconfont icon-github"></a><a href="https://music.163.com/#/playlist?id=755597173" title="听音乐" target="_blank" class="iconfont icon-erji"></a></div> 
  Theme by
  <a href="https://github.com/xugaoyi/vuepress-theme-vdoing" target="_blank" title="本站主题">Vdoing</a> 
    | Copyright © 2019-2021
    <span>Evan Xu | <a href="https://github.com/xugaoyi/vuepress-theme-vdoing/blob/master/LICENSE" target="_blank">MIT License</a></span></div> <div class="buttons"><div title="返回顶部" class="button blur go-to-top iconfont icon-fanhuidingbu" style="display:none;"></div> <div title="去评论" class="button blur go-to-comment iconfont icon-pinglun" style="display:none;"></div> <div title="主题模式" class="button blur theme-mode-but iconfont icon-zhuti"><ul class="select-box" style="display:none;"><li class="iconfont icon-zidong">
          跟随系统
        </li><li class="iconfont icon-rijianmoshi">
          浅色模式
        </li><li class="iconfont icon-yejianmoshi">
          深色模式
        </li><li class="iconfont icon-yuedu">
          阅读模式
        </li></ul></div></div> <!----> <!----> <div class="custom-html-window custom-html-window-rb" style="display:;"><div class="custom-wrapper"><i class="close-but">×</i> <div><!-- 固定160*160px -->
      <ins class="adsbygoogle"
          style="display:inline-block;max-width:160px;max-height:160px"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="8377369658"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script>
      </div></div></div></div><div class="global-ui"><div></div></div></div>
    <script src="/assets/js/app.c1850502.js" defer></script><script src="/assets/js/2.d72a94c1.js" defer></script><script src="/assets/js/36.c8031063.js" defer></script>
  </body>
</html>